# Generated by Django 4.1.7 on 2023-02-27 17:07

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='FirstLevelElement',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=250, verbose_name='Название')),
                ('description', models.TextField(blank=True, null=True, verbose_name='Описание')),
            ],
            options={
                'verbose_name': 'Элемент первого уровня',
                'verbose_name_plural': 'Элементы первого уровня',
            },
        ),
        migrations.CreateModel(
            name='Menu',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=250, verbose_name='Название')),
                ('description', models.TextField(blank=True, null=True, verbose_name='Описание')),
            ],
            options={
                'verbose_name': 'Меню',
                'verbose_name_plural': 'Меню',
            },
        ),
        migrations.CreateModel(
            name='SecondLevelElement',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=250, verbose_name='Название')),
                ('description', models.TextField(blank=True, null=True, verbose_name='Описание')),
                ('first_level', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='menu.firstlevelelement', verbose_name='Элемент первого уровня')),
            ],
            options={
                'verbose_name': 'Элемент второго уровня',
                'verbose_name_plural': 'Элементы второго уровня',
            },
        ),
        migrations.CreateModel(
            name='ThirdLevelElement',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=250, verbose_name='Название')),
                ('description', models.TextField(blank=True, null=True, verbose_name='Описание')),
                ('second_level', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='menu.secondlevelelement', verbose_name='Элемент второго уровня')),
            ],
            options={
                'verbose_name': 'Элемент третьего уровня',
                'verbose_name_plural': 'Элементы третьего уровня',
            },
        ),
        migrations.AddField(
            model_name='firstlevelelement',
            name='menu',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='menu.menu', verbose_name='Меню'),
        ),
    ]
